#include<stdio.h>
#include<SDL/SDL.h>
#include<stdlib.h>
#include "SDL_image.h"
#include "SDL_ttf.h"
#include "SDL_mixer.h"
#include "jeu.h"




void selection(SDL_Surface *image,SDL_Surface *select,SDL_Rect PosSelect)
{

float a,b,d,q;
SDL_Rect number;
SDL_Event event;

d=a+39;
q=b+52;
if (((event.button.x)>a)&&(event.button.x<d)&&((event.button.y)>b)&&(((event.button.y)<q)))
            {

                SDL_EnableKeyRepeat(100, 100);
                number.x=(a+d)/2;
                number.y=(b+q)/2;
                PosSelect.x=a;
                PosSelect.y=b;
                SDL_BlitSurface(select,NULL,image,&PosSelect);

            }
}

